export namespace IConfig {
    export interface UserInfo {
        avatar: string;
        uid: string;
        username: string;

        [property: string]: any;
    }

    export interface IConfigResponse {
        accessKey: string;
        bucket: string;
        cname: number;
        createDate: string;
        description: null;
        endpoint: string;
        expiration: number;
        isStsToken: number;
        keySecret: string;
        modifier: string;
        ossId: string;
        policyText: string;
        region: string;
        roleArn: string;
        status: number;
        uid: string;
        updateDate: string;
        userInfo: UserInfo;
    }

    export interface IConfigUpdateRequest {
        uid: string;
        description?: any;
        region: string;
        accessKey: string;
        keySecret: string;
        bucket: string;
        cname?: number;
        endpoint?: string;
    }

    export interface IConfigAddRequest {
        description?: any;
        region: string;
        accessKey: string;
        keySecret: string;
        cname?: number;
        endpoint?: string;
        bucket: string;
    }
}
